#ifndef WMP_REMOTE_API
#define WMP_REMOTE_API

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <wmp.h>

class WMPlayerRemoteApi : public CComObjectRootEx<CComSingleThreadModel>, public IServiceProvider, 
    public IWMPRemoteMediaServices  
{
public:
    WMPlayerRemoteApi();
    virtual ~WMPlayerRemoteApi();

    BEGIN_COM_MAP(WMPlayerRemoteApi)
        COM_INTERFACE_ENTRY(IServiceProvider)
        COM_INTERFACE_ENTRY(IWMPRemoteMediaServices)
    END_COM_MAP()

    STDMETHOD(GetServiceType)(BSTR * bstrType);
	STDMETHOD(QueryService)(REFGUID ServiceGuid, REFIID refiid, void ** pvoid);
    STDMETHOD(GetApplicationName)(BSTR * bstrName);
    STDMETHOD(GetScriptableObject)(BSTR * bstrName, IDispatch ** pDispatch);
    STDMETHOD(GetCustomUIMode)(BSTR * bstrFile);

};

#endif // WMP_REMOTE_API
